<%@ page contentType="text/html; charset=UTF-8" import="com.pub.database.QueryBean"%>
<%
  QueryBean gqbnDAO=null;
  boolean blnConnectionSuccess=false;
  String strDB_Alias="SQLITE_SWD";

  try{
    gqbnDAO = new QueryBean(strDB_Alias,true,"BIG5","BIG5");

    blnConnectionSuccess = !gqbnDAO.readSingleValueData("select count(user_no) from wkf_user").equals("0");
  }
  catch(Exception e){
    e.printStackTrace();
  }
  finally{
    if(gqbnDAO!=null){
      try{gqbnDAO.close();}catch(Exception se){se.printStackTrace();}
    }
  }
%>
<html>
<head>
<title>
testConnection
</title>
</head>
<body bgcolor="#ffffff">
<h1>
連接<%=strDB_Alias + (blnConnectionSuccess ? "成功" : "失敗")%>
</h1>
</body>
</html>
